import request from "@/utils/request";
const prefixUrl = "/ap/eph";
export class StarManageApi {
    // 获取星历列表
    static reqPostEphemeris() {
        return request.post(`${prefixUrl}/ephemeris_get`,);
    }

    // 设置星历
    static reqPostEphemerisSet(data:any) {
        return request.post(`${prefixUrl}/ephemeris_set`,data);
    }

    //星历计算
    static reqPostEphemerisCal(data:any) {
        return request.post(`${prefixUrl}/ephemeris_cal`,data);
    }

    //获取星历记录
    static reqPostEphemerisRecord() {
        return request.post(`${prefixUrl}/ephemeris_record`,);
    }

    //星历控制
    static reqPostEphemerisControl(data:any) {
        return request.post(`${prefixUrl}/ephemeris_ctrl`,data);
    }

    //删除星历
    static reqPostEphemerisDelete(data:any) {
        return request.post(`${prefixUrl}/ephemeris_config_del`,data);
    }

    // 12根数星历配置
    static reqPostOneTwoRootConfig(data:any) {
        return request.post(`${prefixUrl}/ephemeris_tlw_set`,data);
    }

    //12根数星历计算
    
    static reqPostOneTwoRootCal() {
        return request.post(`${prefixUrl}/ephemeris_tlw_cal`,);
    }

    //12根星历获取
    static reqPostOneTwoRootGet() {
        return request.post(`${prefixUrl}/ephemeris_tlw_get`,);
    }

    //sib2设置
    static reqPostSib2Set(data:any) {
        return request.post(`${prefixUrl}/sib2_set`,data);
    }

    //sib2获取
    static reqPostSib2Get() {
        return request.post(`${prefixUrl}/sib2_get`,);
    }
}
